package com.um.info.dto.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cs.framework.common.annotation.NotNull;
import com.cs.framework.common.bo.BoBase;
import com.cs.framework.web.bo.User;

/**
 * UM用户
 * 
 * @author hedongzhou
 * 
 */
@Entity
@Table(name = "um_user")
public class UmUserDto extends BoBase implements User {

	private static final long serialVersionUID = -6356674215648465024L;

	/**
	 * 用户名
	 */
	@Id
	@Column(name = "user_id")
	@NotNull("用户名")
	private String userId;

	/**
	 * 密码
	 */
	@NotNull("密码")
	private String password;

	/**
	 * 是否为管理员
	 */
	@Column(name = "is_admin")
	@NotNull("是否为管理员")
	private String isAdmin;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

}
